package com.zzl.bonds.ticket.dto.finance;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.bonds.ticket.entity.EnterpriseCreditDataEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 供应商授信额度表,即集团给供应商的额度
 *
 * @author sunpp
 * @date 2022-02-16 14:04:04
 */
@Data
@ApidocModel
@SuppressWarnings("javadoc")
public class SupplierCreditUpdateDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @NotBlank(message = "主键不能为空")
    @ApidocModelProperty(description = "主键")
    private String id;

    @ApidocModelProperty(description = "额度编号")
    private String creditNo;
    @ApidocModelProperty(description = "额度授信主体id")
    private Integer receiveEnterpriseId;
    @ApidocModelProperty(description = "授信额度总额")
    private Double creditAllAmount;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "失效日期", validate = "yyyy-MM-dd")
    private Date effectTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "失效日期", validate = "yyyy-MM-dd")
    private Date expireTime;
    @ApidocModelProperty(description = "是否冻结 0 未冻结 1 已冻结")
    private Integer lockStatus;
    @ApidocModelProperty(description = "冻结金额")
    private Double creditLockAmount;
    @ApidocModelProperty(description = "备注")
    private String remark;
    private Integer financeInstitutyId;
    @ApidocModelProperty(description = "附件资料")
    private List<EnterpriseCreditDataEntity> datas;

}
